package com.m2team.xomnhiepanh;

import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.ViewPropertyAnimator;
import android.widget.TextView;
import com.m2team.xomnhiepanh.util.SystemUiHider;
import com.m2team.xomnhiepanh.util.SystemUiHider.OnVisibilityChangeListener;

public class ViewExifDetailActivity
  extends Activity
{
  private static final boolean AUTO_HIDE = true;
  private static final int AUTO_HIDE_DELAY_MILLIS = 3000;
  private static final int HIDER_FLAGS = 6;
  private static final boolean TOGGLE_ON_CLICK = true;
  View.OnTouchListener mDelayHideTouchListener = new View.OnTouchListener()
  {
    public boolean onTouch(View paramAnonymousView, MotionEvent paramAnonymousMotionEvent)
    {
      ViewExifDetailActivity.this.delayedHide(3000);
      return false;
    }
  };
  Handler mHideHandler = new Handler();
  Runnable mHideRunnable = new Runnable()
  {
    public void run()
    {
      ViewExifDetailActivity.this.mSystemUiHider.hide();
    }
  };
  private SystemUiHider mSystemUiHider;
  
  private void delayedHide(int paramInt)
  {
    this.mHideHandler.removeCallbacks(this.mHideRunnable);
    this.mHideHandler.postDelayed(this.mHideRunnable, paramInt);
  }
  
  @TargetApi(11)
  private void setupActionBar()
  {
    if (Build.VERSION.SDK_INT >= 11) {
      getActionBar().hide();
    }
  }
  
  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903070);
    setupActionBar();
    String str = getIntent().getStringExtra("exif");
    final View localView = findViewById(2131099731);
    TextView localTextView = (TextView)findViewById(2131099730);
    localTextView.setText(str);
    this.mSystemUiHider = SystemUiHider.getInstance(this, localTextView, 6);
    this.mSystemUiHider.setup();
    this.mSystemUiHider.setOnVisibilityChangeListener(new SystemUiHider.OnVisibilityChangeListener()
    {
      int mControlsHeight;
      int mShortAnimTime;
      
      @TargetApi(13)
      public void onVisibilityChange(boolean paramAnonymousBoolean)
      {
        if (Build.VERSION.SDK_INT >= 13)
        {
          if (this.mControlsHeight == 0) {
            this.mControlsHeight = localView.getHeight();
          }
          if (this.mShortAnimTime == 0) {
            this.mShortAnimTime = ViewExifDetailActivity.this.getResources().getInteger(17694720);
          }
          ViewPropertyAnimator localViewPropertyAnimator = localView.animate();
          int j = 0;
          if (paramAnonymousBoolean) {}
          for (;;)
          {
            localViewPropertyAnimator.translationY(j).setDuration(this.mShortAnimTime);
            if (paramAnonymousBoolean) {
              ViewExifDetailActivity.this.delayedHide(3000);
            }
            return;
            j = this.mControlsHeight;
          }
        }
        View localView = localView;
        int i = 0;
        if (paramAnonymousBoolean) {}
        for (;;)
        {
          localView.setVisibility(i);
          break;
          i = 8;
        }
      }
    });
    localTextView.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ViewExifDetailActivity.this.mSystemUiHider.toggle();
      }
    });
  }
  
  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    if (paramMenuItem.getItemId() == 16908332)
    {
      NavUtils.navigateUpFromSameTask(this);
      return true;
    }
    return super.onOptionsItemSelected(paramMenuItem);
  }
  
  protected void onPostCreate(Bundle paramBundle)
  {
    super.onPostCreate(paramBundle);
    delayedHide(100);
  }
}



/* Location:           C:\Users\Administrator\Downloads\Convert APK to Code\dex2jar-0.0.9.15\dex2jar-0.0.9.15\classes-dex2jar.jar

 * Qualified Name:     com.m2team.xomnhiepanh.ViewExifDetailActivity

 * JD-Core Version:    0.7.0.1

 */